﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TKToXML
{
    public class DonVi
    {
        public string MaDV { get; set; }        
        public string TenDV
        {
            get
            {
                using (var context = new ECUSTOMSEntities())
                {
                    var donVi = context.SDONVIs.Where(dv => dv.Ma == MaDV).First();

                    return donVi.Ten_U;
                }
            }
        }
    }
}
